package com.spring.common.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.spring.common.web.model.KidsPark;
import com.spring.common.web.model.Region;
import com.spring.common.web.requestModel.ProductPromotion;

public interface CommonApiMapper {
	String getServiceIntroduction(String service_type_code);
	List<Region> getRegionList();
	List<Region> getChildrenRegionList(String id);
	List<KidsPark> getKidsParkList(@Param(value="id") String id);
	
	List<Map<String,Object>> queryFileById(@Param(value="id") String id);
	int addOssFile(Map<String,Object> m);
	int updateOssFile(Map<String,Object> m);
	int addVideosFile(Map<String, Object> im);
	int updateVideosFile(Map<String, Object> im);
	List<Map<String, Object>> checkFilesToken(@Param(value="token") String token);
	List<Map<String, Object>> checkVideosToken(@Param(value="token") String token);
	
	
	List<Map<String,Object>> getBannerList(HashMap hm);
	int createFile(HashMap hm);
	List<Map<String, Object>> queryCustomerSelByOaUser(String oaUserId);
	
	String getKidParkIDByDeptID(String deptID);
	List<Map<String,Object>> getBusinessTypeCode();
	
	String[] getOrderProductID(String code);
	int insertProductPromotion(ProductPromotion productPromotion);
	int updateProductPromotion(ProductPromotion productPromotion);
}
